<style scoped src="./index.scss" lang="scss" rel="stylesheet/scss"></style>
<template src="./index.html"></template>
<script>
    export default {
        mixins: [Vue.prototype.$vFN.Mixins.Base, Vue.prototype.$vFN.Mixins.Edit],
        components: {

        },
        data() {
            return {
                form: {
                    name: "",
                },

                // 页面接口地址
                apiUrl: {
                    create: "mall-site-portal/product-label/create",
                    update: "mall-site-portal/product-label/update",
                    detail: "mall-site-portal/product-label/getItem",
                },
            };
        },
        methods: {


            // 初始化
            async init() {
                // 初始化数据
                await this.mixinEdit_editBoxInit({
                    model: "form",
                    id: this.id,
                })
                // 显示窗口
                this.mixinEdit_editVisible = true;
            },

            // 提交成功
            onSubmitSuccess() {
                this.onSuccess();
            },
            // 成功回调
            onSuccess() {},
            // 取消回调
            onCancel() {},
            // 失败回调
            onError() {},

        },
        mounted() {
            this.init();
        },
        activated() {},
    };
</script>